<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set minimal number of days the first week in a year or month can have</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setlenient.html">IntlCalendar::setLenient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setrepeatedwalltimeoption.html">IntlCalendar::setRepeatedWallTimeOption</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intlcalendar.setminimaldaysinfirstweek" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::setMinimalDaysInFirstWeek</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">IntlCalendar::setMinimalDaysInFirstWeek</span> &mdash; <span class="dc-title">Set minimal number of days the first week in a year or month can have</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.setminimaldaysinfirstweek-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>IntlCalendar::setMinimalDaysInFirstWeek</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$minimalDays</code></span>
   )</div>

  <p class="para rdfs-comment">
   过程化风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>intlcal_get_minimal_days_in_first_week</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.intlcalendar.html" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$cal</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$minimalDays</code></span>
   )</div>

  <p class="para rdfs-comment">
   Sets the smallest number of days the first week of a year or month must
   have in the new year or month.  For instance, in the Gregorian calendar, if
   this value is 1, then the first week of the year will necessarily include
   January 1st, while if this value is 7, then the week with January 1st will
   be the first week of the year only if the day of the week for January 1st
   matches the day of the week returned by
   <span class="function"><a href="intlcalendar.getfirstdayofweek.html" class="function">IntlCalendar::getFirstDayOfWeek()</a></span>; otherwise it will be
   the previous yearʼs last week.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.setminimaldaysinfirstweek-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">cal</code></em></dt>

    <dd>

     <p class="para">
      The IntlCalendar resource.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">minimalDays</code></em></dt>

    <dd>

     <p class="para">
      The number of minimal days to set.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.setminimaldaysinfirstweek-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   <strong><code>TRUE</code></strong> on success, <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setlenient.html">IntlCalendar::setLenient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setrepeatedwalltimeoption.html">IntlCalendar::setRepeatedWallTimeOption</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
